package com.spring.constructionDI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName: ConstructionTest
 * @Description: TODO
 **/
public class ConstructionTest {

    public static void main(String[] args) {
        //加载spring核心配置文件
        ApplicationContext context = new ClassPathXmlApplicationContext("/applicationContext.xml");
        UserService bean = context.getBean(UserService.class);
        bean.save();
    }


}
